package com.deyuanyun.pic.pig.domain;

import com.deyuanyun.pic.common.util.StringUtils;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Date;

/**
 * 评价
 */
public class EvluationVO {
	/**
	 * 污物
	 */
	private String dirt;
	/***
	 * 污水
	 */
	private String sewage;
	/**
	 * 管道清管总次数
	 */
	private String countNum;
	/**
	 * 每次清管的平均时间
	 */
	private String avgTime;
	/**
	 * 实际清管时间
	 */
	private Date pagDateTime;
	/**
	 * 清管器类型（编辑框）
	 */
	private String pigType;
	/**
	 * 任务名称
	 */
	private String taskName;
	/**
	 * 清出物描述
	 */
	private String discription;
	/**
	 * 每次清管的平均速度
	 */
	private double avgSpeed;
	/**
	 * 清管工具
	 */
	private String pagTool;
	/**
	 * 检测器类型
	 */
	private String detectorType;
	/**
	 * 清管类别
	 */
	private String type;

	/**
	 * 压差
     */
	private BigDecimal pressDif;

	public String getDirt() {
		return dirt;
	}

	public void setDirt(String dirt) {
		this.dirt = dirt;
	}

	public String getSewage() {
		return sewage;
	}

	public void setSewage(String sewage) {
		this.sewage = sewage;
	}

	public String getCountNum() {
		return countNum;
	}

	public void setCountNum(String countNum) {
		this.countNum = countNum;
	}

	public String getAvgTime() {
		return avgTime;
	}

	public void setAvgTime(String avgTime) {
		this.avgTime = avgTime;
	}

	public Date getPagDateTime() {
		return pagDateTime;
	}

	public void setPagDateTime(Date pagDateTime) {
		this.pagDateTime = pagDateTime;
	}

	public String getPigType() {
		return pigType;
	}

	public void setPigType(String pigType) {
		this.pigType = pigType;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public String getDiscription() {
		return discription;
	}

	public void setDiscription(String discription) {
		this.discription = discription;
	}

	public double getAvgSpeed() {
		DecimalFormat df=(DecimalFormat) NumberFormat.getInstance();
		df.applyPattern("##0.##");
		df.format(avgSpeed);
		return avgSpeed;
	}

	public void setAvgSpeed(double avgSpeed) {
		this.avgSpeed = avgSpeed;
	}

	public String getPagTool() {
		return StringUtils.isNotNullEmpty(detectorType)?detectorType:pigType;
	}

	public String getDetectorType() {
		return detectorType;
	}

	public void setDetectorType(String detectorType) {
		this.detectorType = detectorType;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getPressDif() {
		return pressDif;
	}

	public void setPressDif(BigDecimal pressDif) {
		this.pressDif = pressDif;
	}
}
